package com.demo;

import cn.lingyangwl.framework.tool.core.exception.BizException;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * @author shenguangyang
 */
@Getter
@Setter
@ToString
public class UserId {
    private Integer userId;

    public UserId(Integer id) {
        if (id == null || id == 0) {
            throw new BizException("非法userId");
        }
        this.userId = id;
    }
}
